package cn.com.agameofthrones.AGoTLCGCards.Fragment;

import cn.com.agameofthrones.AGoTLCGCards.AGoTContentProvider;
import cn.com.agameofthrones.AGoTLCGCards.R;
import android.app.Activity;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.widget.SimpleCursorAdapter;

public class SearchResultActivity extends FragmentActivity {

	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
  

        if (savedInstanceState == null) {
            String where_clause=getIntent().getStringExtra(
            		"cn.com.agameofthrones.AGoTLCGCards.search_sql");
            SearchResultFragment search_result = new SearchResultFragment(where_clause);
            getSupportFragmentManager().beginTransaction().add(android.R.id.content, search_result).commit();
        }
    }

}
